const webpack = require('./webpack');
const webpackOptions = require('./webpack.config.js');
const compiler = webpack(webpackOptions);
compiler.run((err, stats) => {
  let result = stats.toJson({
    files: true, // 产出了那些文件
    assets: true,// 生成了那些资源
    chunk: true,//生成哪些代码块
    module: true,//模块信息
    entries: true //入口信息
  })
  // console.log(JSON.stringify(stats, null, 2))
  // console.log(JSON.stringify(result, null, 2));
})